from openai import OpenAI

client = OpenAI(api_key="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")

response = client.chat.completions.create(
  model="gpt-4-vision-preview",
  messages=[
    {
      "role": "user",
      "content": [
        {"type": "text", "text": "这幅画画的是什么？"},
        {
          "type": "image_url",
          "image_url": {
            "url": "https://img1.baidu.com/it/u=2661900219,3825036524&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500",
          },
        },
      ],
    }
  ],
  max_tokens=300,
)

print(response.choices[0])